package com.laoxu.test.rbacdemo.service;

import com.laoxu.test.rbacdemo.model.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author laoxu
 * @since 2020-08-09
 */
public interface SysMenuService extends IService<SysMenu> {
    List<SysMenu> findUserPermissions(String username);

    List<SysMenu> findUserMenus(String username);

    Map<String, Object> findMenus(SysMenu menu);

    List<SysMenu> findMenuList(SysMenu menu);

    void createMenu(SysMenu menu);

    void updateMenu(SysMenu menu) throws Exception;

    /**
     * 递归删除菜单/按钮
     *
     * @param menuIds menuIds
     */
    void deleteMeuns(String[] menuIds) throws Exception;
}
